import request from "@/utils/request";
import { serverBaseURL } from '@/constant/system.js'
// 请求地址前缀(微服务配置中的服务名称)
const baseURL = serverBaseURL

export function getAll(data) {
  return request({
    url: baseURL+"/student/getAll",
    method: "post",
    data,
  });
}
export function getByInstrumentCode(data) {
  return request({
    url: baseURL+"/student/getByInstrumentCode",
    method: "post",
    data,
  });
}
// 分页查询学员信息
export function selectByPage(data) {
  return request({
    url: baseURL+"/student/selectByPage",
    method: "post",
    data,
  });
}
export function exportStudent(data) {
  return request({
    url: baseURL+"/student/export",
    method: "post",
    responseType: 'blob',
    data,
  });
}
export function getByID(data) {
  return request({
    url: baseURL+"/student/getByID",
    method: "post",
    data,
  });
}
export function addStudent(data) {
  return request({
    url: baseURL+"/student/add",
    method: "post",
    data,
  });
}
export function updateStudent(data) {
  return request({
    url: baseURL+"/student/update",
    method: "post",
    data,
  });
}
export function deleteStudent(data) {
  return request({
    url: baseURL+"/student/delete",
    method: "post",
    data,
  });
}
export function createStudentPhone(data) {
  return request({
    url: baseURL+"/student/createPhone",
    method: "post",
    data,
  });
}
export function mergeStudent(data) {
  return request({
    url: baseURL+"/student/mergeStudent",
    method: "post",
    data,
  });
}

